<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    String name="白河愁";
    String password="123";
    //取所有的cookie
    Cookie[] cks = request.getCookies();
    //取响应的cookie值
    for(Cookie ck:cks){
        if(ck.getName().equals("name")){
            name = ck.getValue();
        }else if(ck.getName().equals("password")){
            password = ck.getValue();
        }
    }
%>
<form action="login.do" method="post">
    <p>用户名:<input name="uname"  value="<%=name%>"></p>
    <p>密码:<input name="upassword"  value="<%=password%>"></p>
    <p>记住密码:<input name="isRem" type="checkbox" value="1"></p>
    <p><input value="登录" type="submit"></p>
</form>
</body>
</html>
